<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<?php if($this->msg):?>
<?=$this->msg?>
<br />
<?php endif;?>
<form action="/bk/admin" method="POST">
关键字：<input type="text" placeholder="姓名/邮箱" name="keyword">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" value="搜索" />&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='/bk/admin';" />&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/bk/add-admin">添加</a>
</form>
<br />
<table>
  <tr>
    <th>姓名</th>
    <th>邮箱</th>
    <th>组</th>
    <th>状态</th>
    <th>操作</th>
  </tr>
  <?php if($this->data):?>
  <?php foreach($this->data as $data):?>
  <tr>
    <td><?=$data['admin_name']?></td>
    <td><?=$data['admin_email']?></td>
    <td><?=$data['group_name']?></td>
    <td><?=($data['admin_status']?"正常":"冻结")?></td>
    <td><a href="/bk/edit-admin/id/<?=$data['admin_id']?>">编辑</a></td>
  </tr>
  <?php endforeach;?>
  <?php endif;?>
</table>
<br /><br />
<div align="right"><?=$this->pagination?></div>